NotEmptyCollection
Parent of classes representing collections that contain at least one element.
Parameters
The type of elements contained in this collection.
Functions
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the string representation of this collection as a NotBlankString.
Properties
Inheritors
Extensions
Returns the element at the specified index in this collection, or returns the result of calling the defaultValue function if the index is out of bounds.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.